package com.sunwayhorizo.health.hl7.persistent;

import com.sunwayhorizo.health.hl7.persistent.pk.RimCoreRolePosNumsPK;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.TableGenerator;


@Entity
//@TableGenerator(name="RolePosNums_IdGenerator", table="RIM_Id_Generator", pkColumnName = "pkColumn", valueColumnName = "valueColumn",pkColumnValue="Role_PosNums")
@NamedQuery(name = "RimCoreRolePosNums.findAll",     query = "select o from RimCoreRolePosNums o")
@Table(name = "RIM_CORE_ROLE_POS_NUMS")
@IdClass(RimCoreRolePosNumsPK.class)
public class RimCoreRolePosNums implements Serializable {
    
    @Column(name="POSITION_NUM", nullable = false)    private Long positionNum;
    @Id
//    @GeneratedValue(strategy = GenerationType.TABLE,generator = "RolePosNums_IdGenerator" )
    @Column(name="POSITION_NUM_ID", nullable = false)    private Long positionNumId;
    @Column(name="POSITION_ORDER_NUM")    private Long positionOrderNum;
    @Id
    @Column(name="ROLE_ID", nullable = false)    private Long roleId;
    @Id
    @Column(name="ROLE_VERSION_NUM", nullable = false)    private Long roleVersionNum;

    public RimCoreRolePosNums() {
    }


    public Long getPositionNum() {
        return positionNum;
    }

    public void setPositionNum(Long positionNum) {
        this.positionNum = positionNum;
    }

    public Long getPositionNumId() {
        return positionNumId;
    }

    public void setPositionNumId(Long positionNumId) {
        this.positionNumId = positionNumId;
    }

    public Long getPositionOrderNum() {
        return positionOrderNum;
    }

    public void setPositionOrderNum(Long positionOrderNum) {
        this.positionOrderNum = positionOrderNum;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getRoleVersionNum() {
        return roleVersionNum;
    }

    public void setRoleVersionNum(Long roleVersionNum) {
        this.roleVersionNum = roleVersionNum;
    }
}
